<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>teacher login</title>
</head>
<body>

<form  method="post" th:action="@{/teacher/do_teacher_login}" >
  用户名：<input type="text" name="teacherNumber"><br>
  密码： <input type="password" name="teacherPassword"><br>
  <label style="color: red" th:text="${session['SPRING_SECURITY_LAST_EXCEPTION'].message}" th:if="${param.error}"></label>
  <input type="submit" value="登录">
</form>

</body>
</html>